<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.5\dist\css\bootstrap.css">
</head>
<body>
    <table class="table table-striped">
        <tr>
            <td>学生编号</td>
            <td>学生姓名</td>
            <td>学生角色</td>
        </tr>
        <tr>
            <td>${user.uid}</td>
            <td>${user.uname}</td>
            <td>${user.lev==0?'普通学生':'管理员'}</td>
        </tr>
    </table>

    <c:if test="${pList.size()<1}">
        尚未入住
    </c:if>
    <table class="table table-striped">
        <tr>
            <td>学生姓名</td>
            <td>图片</td>
            <td>宿舍楼</td>
            <td>宿舍号</td>
            <td>入住时间</td>
            <td>退租时间</td>
        </tr>
        <c:forEach items="${pList}" var="p">
            <tr>
                <td>${user.uname}</td>
                <td><img alt="无法展示"></td>
                <td>${p.fname}</td>
                <td>${p.dname}</td>
               <td>${p.inTime}</td>
                <td>${p.outTime==''||p.outTime==null?'至今':p.outTime}</td>
            </tr>
        </c:forEach>
        <tr>
            <td colspan="11">
                <input type="button" value="上一" onclick="fenye(1)">
                <input type="button" value="上一" onclick="fenye(1)">
                <input type="button" value="上一" onclick="fenye(1)">
                <input type="button" value="上一" onclick="fenye(1)">
            </td>

        </tr>
    </table>
</body>
</html>